﻿using System;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.SYS.ViewModel
{
    public class SearchCriteriaVM
    {
        [DataMember]
        public string SearchKeyword { get; set; }

        [DataMember]
        public bool SearchTitleOnly { get; set; }

        [DataMember]
        public string SearchByEmployeeName { get; set; }

        [DataMember]
        public bool SearchByEmployeeNameExactName { get; set; }

        [DataMember]
        public string SeachOption { get; set; }

        [DataMember]
        public string SortResultByType { get; set; }

        [DataMember]
        public string SortResultOrdering { get; set; }

        [DataMember]
        public int RequestByEmpId { get; set; }

        public string[] SearchKeywords { get { return (SearchKeyword ?? string.Empty).SplitBySpaceExcludeEmpty(); } }
    }
}